<?php
/*
 * Created on 21 janv. 2009
 * Created by Ludovic Reenaers
 * lreenaers@hotmail.com
 */
class ViewHomepage extends View{
	function show($page){
		$page.= "<br/>";
		$usr=$_SESSION["USER_BEAN"];
		$page.=$usr->getName()."\n";
		$profile=$usr->getProfile();
		$tokens=$profile->getTokens();

		$page.='<ul>';
		foreach($tokens as $token){
			$page.='<li>'.$token->getLabel();
				
			$page.='</li>';

		}
		$page.='</ul>';

		$this->setContent($page);
	}
}
?>
